package com.yixin.hospital.entity.dto.req.jobduty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("新增职务请求体")
@Data
public class JobDutyAddReqDTO {

    @ApiModelProperty("部门id")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @ApiModelProperty("职务名称")
    @NotBlank(message = "职务名称不能为空")
    private String name;

    @ApiModelProperty("是否是管理员(0-否 1-是)")
    @NotNull(message = "是否是管理员不能为空")
    private Integer isManager;

    @ApiModelProperty(value = "菜单列表", example = "[1,2,3]")
    private List<Long> menuList;

    @ApiModelProperty("是否脱敏(0-否 1-是)")
    @NotNull(message = "是否脱敏不能为空")
    private Integer isDesensitization;
}
